package com.twu.biblioteca;


public class Movie extends Media{
    private final String title;
    private final String director;
    private final String year;
    private final String rating;

    public Movie(String movieTitle, String movieDirector, String movieYear, String movieRating) {
        title = movieTitle;
        director = movieDirector;
        year = movieYear;
        rating = movieRating;
    }

    public String getTitle(){
        return title;
    }

    public String getYear(){
        return year;
    }

    public String getDirector(){
        return director;
    }

    public String getRating(){
        return rating;
    }

    public String mediaStatus() {
        return this.getRenter() != null ?  " ["+this.status()+" TO: "+this.getRenter().getName()+"]" : " ["+this.status()+"]";
    }

    public String mediaTitles() {
        return this.getTitle()+" ("+this.getYear()+") - "+this.getDirector()+", RATING: "+this.getRating()+mediaStatus();
    }

    public String checkoutReturnValue() {
        return "Thank you! Enjoy the movie '"+this.getTitle()+"' by "+this.getDirector();
    }

    public String returnMediaValue() {
        return "Thank you for returning the movie '"+this.getTitle()+"' by "+this.getDirector();
    }
}
